#include "VehicleInfo.h"
#include "Vehicle.h"

VehicleInfo* VehicleInfo::create(Vehicle* vehicle){
	VehicleInfo* vehicleInfo = VehicleInfo::create();
	vehicleInfo->updateInfo(vehicle);
	return vehicleInfo;
}

void VehicleInfo::updateInfo(Vehicle* vehicle){
	numTurn = vehicle->getNumTurn();
	vehicleId = vehicle->getVehicleId();
	vehicleType = vehicle->getTag();
}

bool VehicleInfo::init(){
	isFinished = false;
	return true;
}

VehicleInfo::VehicleInfo()
{
}

VehicleInfo::~VehicleInfo()
{
}

void VehicleInfo::updateNumTurn(Vehicle* vehicle){
	numTurn = vehicle->getNumTurn();
}